package com.moyuaninfo.myyserver.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author QiuXiangBa
 * @version 1.0
 */
@Data
@ApiModel(value = "dvr", description = "DVR摄像头信息")
public class Dvr {
    @ApiModelProperty(name = "dvrCamera", value = "摄像头设备id", dataType = "int", required = true, example = "1")
    private int dvrCamera;

    @ApiModelProperty(name = "dvrIp", value = "设备IP地址或是静态域名，字符数不大于128个", dataType = "String", required = true, example = "192.168.1.102")
    private String dvrIp;

     @ApiModelProperty(name = "dvrPort", value = "设备端口号", dataType = "int", required = true, example = "8000")
     private int dvrPort;

    @ApiModelProperty(name = "dvrUsername", value = "登录的用户名", dataType = "String", required = true, example = "admin")
    private String dvrUsername;

    @ApiModelProperty(name = "dvrPassword", value = "用户密码", dataType = "String", required = true, example = "my123456")
    private String dvrPassword;

    @ApiModelProperty(name = "dvrChannel", value = "通道号", dataType = "int", required = true, example = "33")
    private int dvrChannel;

    public Dvr(){}

    /**
     * 构造函数
     *
     * @param dvrCamera 摄像头设备id
     * @param dvrIp 设备IP地址或是静态域名，字符数不大于128个
     * @param dvrPort 设备端口号
     * @param dvrUsername 登录的用户名
     * @param dvrPassword 用户密码
     * @param dvrChannel 通道号
     *
     * @author QiuXiangBa
     * @date
     **/
    public Dvr(int dvrCamera, String dvrIp, int dvrPort, String dvrUsername, String dvrPassword, int dvrChannel) {
        this.dvrCamera = dvrCamera;
        this.dvrIp = dvrIp;
        this.dvrPort = dvrPort;
        this.dvrUsername = dvrUsername;
        this.dvrPassword = dvrPassword;
        this.dvrChannel = dvrChannel;
    }

}
